//package com.example.commonlib;
//
//import android.util.Log;
//
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//
///**
// * Created by 贺玉琨 on 2019/7/21.
// */
//@Aspect
//public class AspectTest {
//
//    private static final String TAG = "xuyisheng";
//
//    @Before("execution(* android.app.Activity.on**(..))")
//    public void onActivityMethodBefore(JoinPoint joinPoint) throws Throwable {
//        String key = joinPoint.getSignature().toString();
//        Log.d(TAG, "onActivityMethodBefore: " + key);
//    }
//
//    @Before("execution(* com.hyk.CommonLib.common.utils.ToastUtil.showError(..))")
//    public void showError(JoinPoint joinPoint) throws Throwable {
//        String key = joinPoint.getSignature().toString();
//        Log.d(TAG, "showError: " + key);
//    }
//
//    @Before("execution(* com.hyk.CommonLib.common.utils.ToastUtil.getSingleton())")
//    public void getSingleton(JoinPoint joinPoint) throws Throwable {
//        String key = joinPoint.getSignature().toString();
//        Log.d(TAG, "getSingleton: " + key);
//    }
//
//    @Before("execution(* android.widget.Toast.show())")
//    public void show(JoinPoint joinPoint) throws Throwable {
//        String key = joinPoint.getSignature().toString();
//        Log.d(TAG, "show: " + key);
//    }
//}